<script setup>
 import {ref} from "vue"  
 const msg = ref('我是子组件')
 const showAlert = () => {
    alert('66666')
 }
 defineExpose({
    msg,
    showAlert
 })    
</script>
       
<template>
 <div></div>
</template>
       
<style scoped>
       
</style>